/<template>
  <div id="Index">
    <router-view></router-view>
    <van-tabbar v-model="active">
      <van-tabbar-item to="/shouye" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item to="/fenlei" icon="search">分类</van-tabbar-item>
      <van-tabbar-item to="/gouwuche" icon="friends-o">购物车</van-tabbar-item>
      <van-tabbar-item to="/wode" icon="setting-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
import Vue from "vue";
import { Tabbar, TabbarItem } from "vant";
Vue.use(Tabbar);
Vue.use(TabbarItem);
export default {
  data() {
    return {
      active: 0,
    };
  },
};
</script>

<style>
#Index {
  width: 100%;
  height: 100%;
}
</style>